package com.zwd.deep.common;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 返回结果枚举
 * @author wanjunhong
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {
    SUCCESS(200,"成功"),
    FAIL(400,"失败"),
    NO_RESOURCE_FOUND(404, "找不到资源！"),
    GET_USER_FINGERPRINT_ERROR(464, "获取用户唯一标识失败！"),
    ERROR(500,"异常"),
    SYSTEM_ERROR(501, "系统错误！请稍后再试！"),
    /**
     * 登录相关
     *
     */
    LOGIN_SUCCESS(600, "登录成功！"),
    NO_LOGIN(601, "未登录！"),
    LOGIN_ERROR(602, "登录失败！"),
    LOGIN_EXPIRED(603, "登录已过期！请重新登录！"),
    USER_OR_PASSWORD_ERROR(604, "账号或密码错误！"),
    USER_NOT_EXIST(606, "用户不存在！"),
    USERNAME_EXIST(607, "用户已经存在"),
    USER_EMAIL_EXIST(607, "用户名已经存在"),
    BAD_TOKEN(608, "认证错误！请重新登录！"),
    HEADER_ENCODE_ERROR(609, "请求头编码错误！"),
    VERIFY_CODE_ERROR(611, "验证码错误！"),
    LOGOUT_SUCCESS(612, "退出登录成功！"),
    REGISTER_FAIL(613, "注册失败！"),
    UPDATE_FAIL(614, "更新失败");

    private final Integer code;
    private final String msg;

}
